<?php
    include "customer.php";

$userid=$_REQUEST['userid'];
$usercontent=$_REQUEST['usercontent'];
$content=$_REQUEST['content'];
$date=$_REQUEST['date'];

mysqli_select_db($conn,"shopping");

$sql =  "insert into customer(userid,usercontent,`content`,`date`)
 values ('$userid','$usercontent','$content','$date')";
//SQL模板

   $result=mysqli_query($conn,$sql);

    if (!$result){
        echo '数据更新失败！';
    }else{
        echo '数据更新成功！';
    }
    
    mysqli_close($conn);
?>
